<?php
	$message = $this->GetMessage();
	header( "Content-Type: text/html; charset=".$this->GetCharset() );
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
  		<title>
			<?php echo $this->GetWakkaName()." : ".$this->AddSpaces($this->GetPageTag()).($this->method!="show"?" (".$this->method.")":""); ?>
		</title>
		<link rel="stylesheet" type="text/css" href="<?php echo $this->GetConfigValue("theme_url") ?>css/wakka.css" />
<?php if ($this->method=='edit') {
include_once $this->GetConfigValue("root_url")."js/xinha.inc";
} ?>

</head>

	<body <?php if ($this->method=='edit') { ?>onload="xinha_init();"<? } ?>>

		<img id="header" src="<?php echo $this->GetConfigValue("theme_url") ?>images/header1.jpg" height="126" width="319">
		<div id="logo_holder"><img id="logo" src="<?php echo $this->GetConfigValue("theme_url") ?>images/sitelogo.jpg" height="66" width="280"></div>
		<div id="header_bottom"></div>

<div id="nav_holder">

<div>&nbsp;&nbsp;|&nbsp;
<a class="navlink" href="/HomePage">Home</a>
&nbsp;|&nbsp;
<a class="navlink" href="/BibleStudies">Bible Studies</a>
&nbsp;|&nbsp;
<a class="navlink" href="/News">News</a>
&nbsp;|&nbsp;
<a class="navlink" href="/Events">Events</a>
&nbsp;|&nbsp;
<a class="navlink" href="/AboutUs">About Us</a>
&nbsp;|&nbsp;
</div>
</div>

		<div id="rightbar"><div class="inner"></div></div>
		<div id="leftbar"><div class="inner">

<div class="container_box">
  <div width="100%" style="width: 100%;"><div class="moduletitle text_moduletitle">
<?php
        echo "Bookmarks</div><div>";
        echo $this->ComposeLinkToPage($this->config["root_page"]);
        echo "<br />".$this->Format(str_replace("|","\n<br />",$this->GetBookmarksFormatted()),"post_wacko");
        echo "</div>";

        if ($this->GetUser()) {
			if (!in_array($this->GetPageSuperTag(),$this->GetBookmarkLinks())) {?>
				<a href="<?php echo $this->Href('', '', "addbookmark=yes")?>">
					<?php echo $this->GetResourceValue("AddToBookmarks"); ?>
				</a>
	<?php } else { ?>
			<a href="<?php echo $this->Href('', '', "removebookmark=yes")?>">
			<?php echo $this->GetResourceValue("RemoveFromBookmarks"); ?>
			</a>
	<?php }
        }
?>
  </div>
</div>
<div class="container_box">
  <div width="100%" style="width: 100%;">
						<?php
							echo $this->GetPageTime();
        					echo "<br />";

                            if ($this->HasAccess("write")) {
								echo "<a href=\"".$this->href("edit")."\" accesskey=\"E\" title=\"".$this->GetResourceValue("EditTip")."\">".$this->GetResourceValue("EditText")."</a>\n";
							}
							echo '<br />';
                            if ($this->GetPageTime()) {
								echo "<a href=\"".$this->href("revisions")."\" title=\"".$this->GetResourceValue("RevisionTip")."\">".$this->GetResourceValue('SettingsRevisions')."</a>\n";
                            }
							// if this page exists
							if ($this->page) {
								// if owner is current user
							    if ($this->UserIsOwner()) {
									echo '<br />';
							    	print(" <a href=\"".$this->href("rename")."\">".$this->GetResourceValue("RenameText")."</a>");
									echo '<br />';
							    	print("<a href=\"".$this->href("acls")."\"".(($this->method=='edit')?" onclick=\"return window.confirm('".$this->GetResourceValue("EditACLConfirm")."');\"":"").">".$this->GetResourceValue("EditACLText")."</a>");
							    }

							    if ($this->CheckACL($this->GetUserName(),$this->config["rename_globalacl"]) && !$this->UserIsOwner()) {
									echo '<br />';
							    	print(" <a href=\"".$this->href("rename")."\">".$this->GetResourceValue("RenameText")."</a>");
							    }

							    if ($this->IsAdmin()) {
									echo '<br />';
									print(" <a href=\"".$this->href("remove")."\">".$this->GetResourceValue("DeleteText")."</a>");
							    }

								echo '<br />';
							    print("<a href=\"".$this->href("settings"). "\"".(($this->method=='edit')?" onclick=\"return window.confirm('".$this->GetResourceValue("EditACLConfirm")."');\"":"").">".$this->GetResourceValue("SettingsText")."</a>");

								echo '<br />';
								print "<a href=\"".$this->href("export.xml")."\" title=\"Click to view recent page revisions in XML format.\" target=\"_blank\">Export to XML</a>\n";

							    if ($this->UserIsOwner()) {
		                       		echo "<br />";
									print($this->GetResourceValue("YouAreOwner"));
							    } else {
		                       		echo "<br />";
							    	if ($owner = $this->GetPageOwner()) {
							        print($this->GetResourceValue("Owner").$this->Link($owner));
							      } else if (!$this->page["comment_on"]) {
							        print($this->GetResourceValue("Nobody").($this->GetUser() ? " (<a href=\"".$this->href("claim")."\">".$this->GetResourceValue("TakeOwnership")."</a>)" : ""));
							      }
								}
							}
						?>
</div>
  </div>
</div></div>

<div id="main">
  <div class="container_box">
  <div width="100%" style="width: 100%;">